package com.atguigu.crowd.funding.service.api;


import java.util.List;

import com.atguigu.crowd.funding.entity.Role;
import com.github.pagehelper.PageInfo;


public interface RoleService {
	public void save(Role role);
	
	//分页数据
	public PageInfo<Role> queryRoleBykeyWord(Integer pageNum,Integer pageSize,String keyWord);

	public void batchDelete(List<Integer> roleidList);

	public void updateRole(Role role);

	/**
	 * 获得该admin用户分配的所有角色
	 * @param adminid
	 * @return
	 */
	public List<Role> getAssignRole(Integer adminid);
	/**
	 * 获得该admin用户未分配的所有角色
	 * @param adminid
	 * @return
	 */
	public List<Role> getUnAssignRole(Integer adminid);

	public void updateAssignRole(Integer adminid, List<Integer> listRoleId);

}
